Optimal. Leaf size=133 \[ -\frac{x \left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} \left (a e^2-b d^2 (2 p+3)\right ) \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )}{b (2 p+3)}+\frac{e (d+e x) \left (a+b x^2\right )^{p+1}}{b (2 p+3)}+\frac{d e (p+2) \left (a+b x^2\right )^{p+1}}{b (p+1) (2 p+3)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.172484, antiderivative size = 125, normalized size of antiderivative = 0.94, number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235 \[ x \left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} \left (d^2-\frac{a e^2}{2 b p+3 b}\right ) \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )+\frac{e (d+e x) \left (a+b x^2\right )^{p+1}}{b (2 p+3)}+\frac{d e (p+2) \left (a+b x^2\right )^{p+1}}{b (p+1) (2 p+3)} \]
Antiderivative was successfully verified.
[In] Int[(d + e*x)^2*(a + b*x^2)^p,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 28.0547, size = 107, normalized size = 0.8 \[ \frac{d e \left (a + b x^{2}\right )^{p + 1} \left (p + 2\right )}{b \left (p + 1\right ) \left (2 p + 3\right )} + \frac{e \left (a + b x^{2}\right )^{p + 1} \left (d + e x\right )}{b \left (2 p + 3\right )} - \frac{x \left (1 + \frac{b x^{2}}{a}\right )^{- p} \left (a + b x^{2}\right )^{p} \left (a e^{2} - b d^{2} \left (2 p + 3\right )\right ){{}_{2}F_{1}\left (\begin{matrix} - p, \frac{1}{2} \\ \frac{3}{2} \end{matrix}\middle |{- \frac{b x^{2}}{a}} \right )}}{b \left (2 p + 3\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x+d)**2*(b*x**2+a)**p,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.154338, size = 133, normalized size = 1. \[ \frac{\left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} \left (3 b d^2 (p+1) x \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )+e \left (3 d \left (b x^2 \left (\frac{b x^2}{a}+1\right )^p+a \left (\left (\frac{b x^2}{a}+1\right )^p-1\right )\right )+b e (p+1) x^3 \, _2F_1\left (\frac{3}{2},-p;\frac{5}{2};-\frac{b x^2}{a}\right )\right )\right )}{3 b (p+1)} \]
Antiderivative was successfully verified.
[In] Integrate[(d + e*x)^2*(a + b*x^2)^p,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.055, size = 0, normalized size = 0. \[ \int \left ( ex+d \right ) ^{2} \left ( b{x}^{2}+a \right ) ^{p}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x+d)^2*(b*x^2+a)^p,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (e x + d\right )}^{2}{\left (b x^{2} + a\right )}^{p}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)^2*(b*x^2 + a)^p,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left ({\left (e^{2} x^{2} + 2 \, d e x + d^{2}\right )}{\left (b x^{2} + a\right )}^{p}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)^2*(b*x^2 + a)^p,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 40.8541, size = 97, normalized size = 0.73 \[ a^{p} d^{2} x{{}_{2}F_{1}\left (\begin{matrix} \frac{1}{2}, - p \\ \frac{3}{2} \end{matrix}\middle |{\frac{b x^{2} e^{i \pi }}{a}} \right )} + \frac{a^{p} e^{2} x^{3}{{}_{2}F_{1}\left (\begin{matrix} \frac{3}{2}, - p \\ \frac{5}{2} \end{matrix}\middle |{\frac{b x^{2} e^{i \pi }}{a}} \right )}}{3} + 2 d e \left (\begin{cases} \frac{a^{p} x^{2}}{2} & \text{for}\: b = 0 \\\frac{\begin{cases} \frac{\left (a + b x^{2}\right )^{p + 1}}{p + 1} & \text{for}\: p \neq -1 \\\log{\left (a + b x^{2} \right )} & \text{otherwise} \end{cases}}{2 b} & \text{otherwise} \end{cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x+d)**2*(b*x**2+a)**p,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (e x + d\right )}^{2}{\left (b x^{2} + a\right )}^{p}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)^2*(b*x^2 + a)^p,x, algorithm="giac")
[Out]